package com.taotao.controller;

import com.taotao.bean.EasyUIResult;
import com.taotao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by liujunchen on 2016/11/22.
 */
@Controller
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService userService ;
    @RequestMapping(value = "list",method = RequestMethod.GET)
    @ResponseBody
    public EasyUIResult queryUserList(@RequestParam("page")Integer page , @RequestParam("rows")Integer rows ){
        EasyUIResult easyUIResult = this.userService.queryUserList(page,rows );
        return  easyUIResult   ;
    }

}
